let files = require.context('./', false, /\.js$/)

files.keys().forEach(key => {
  let reg = /(\.\/)|\.js/g
  if (key.replace(reg, '') !== 'index') files(key).default
})